<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/4/1
  Time: 22:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="" method="post">
    账号:<input type="text" name="username" value="任务"><br>
    密码:<input type="password" name="password" value="管理"><br>
    <input type="submit" value="登录">
    <input id="regist" type="button" value="注册">
</form>

<script type="text/javascript">
    window.onload = function(){
        // console.log(' onload')

        document.getElementById("regist").onclick = function(){
           console.log('ById("regist").onclick')
            window.location.href = "registBean.jsp";
        }
    }
</script>
</body>
</html>
